Use the Oink theme
Import the Oink Hugo Module or inspect the independent project site.
Oink is a Hugo theme whose complete browser runtime ships with the theme. A consumer site builds with Hugo Extended alone: no Node.js package installation, PostCSS step, CDN, or build-time remote asset download is part of the default path.
github.com/pgsty/oink in an existing
or new Hugo site. See the Oink quick start.pgsty/oink.pgsty.com repository
as a complete bilingual configuration and regression reference.Install Git, Go, and Hugo Extended 0.160.1 or newer. See
Before you begin for platform
notes and verification commands.
From the site root:
hugo mod init github.com/example/product-docs
hugo mod get github.com/pgsty/oink@THEME_REF
Then import the theme in hugo.yaml:
module:
imports:
- path: github.com/pgsty/oink
Pin THEME_REF to a released tag or immutable commit and commit go.mod and
go.sum.
The same commands preview and build every supported module consumer:
hugo server --disableFastRender
hugo --gc --minify
page.md and page.zh.md.Import the Oink Hugo Module or inspect the independent project site.
Use an OINK archive, Git checkout, or Hugo Module.
Build and preview an OINK site with a Hugo Extended container.
Configure an OINK site, languages, navigation, and local features.
Diagnose OINK installation, build, language, search, and platform issues.